package org.dromara.demo.domain.dto;

import jakarta.validation.constraints.NotBlank;
import java.io.Serial;
import java.io.Serializable;

/**
 * 联系人表单数据传输对象
 */
public class ContactFormDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 姓名
     */
    @NotBlank(message = "联系人姓名不能为空")
    private String name;

    /**
     * 电话
     */
    @NotBlank(message = "联系电话不能为空")
    private String phone;

    /**
     * 职位
     */
    private String position;

    /**
     * 是否为主要联系人
     */
    private Boolean isPrimary;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Boolean getPrimary() {
        return isPrimary;
    }

    public void setPrimary(Boolean primary) {
        isPrimary = primary;
    }
}